package edu.nf.controller.region;

import edu.nf.controller.BaseController;
import edu.nf.hotel.region.HotelInformation;
import edu.nf.hotel.regiondao.HotelInformationDao;
import edu.nf.hotel.regiondao.impl.HotelInformationDaoImpl;
import edu.nf.hotel.vo.PageVO;
import edu.nf.hotel.vo.ResultVO;
import org.nf.web.annotation.RequestMapping;
import org.nf.web.servlet.View;
import org.nf.web.servlet.view.JsonView;

import java.rmi.registry.Registry;
import java.util.List;

/**
 * @Date 2023-06-29
 * @Author 带土
 */
public class HotelInformationController extends BaseController {

    @RequestMapping("/region/hotel")
    public View selectAll(){
        HotelInformationDao dao = new HotelInformationDaoImpl();
        List<HotelInformation> list= dao.getAllHotelInformation();
        ResultVO<List<HotelInformation>> vo = success(list);
        return new JsonView(vo);
    }
}
